<html>
<head><meta charset="utf-8"><title>syntax highlighting for defaults · project-const-generics · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/260443-project-const-generics/index.html">project-const-generics</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/260443-project-const-generics/topic/syntax.20highlighting.20for.20defaults.html">syntax highlighting for defaults</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="236570235"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/260443-project-const-generics/topic/syntax%20highlighting%20for%20defaults/near/236570235" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Boxy [she/her] <a href="https://rust-lang.github.io/zulip_archive/stream/260443-project-const-generics/topic/syntax.20highlighting.20for.20defaults.html#236570235">(Apr 28 2021 at 20:09)</a>:</h4>
<p>does anyone know what's up with syntax highlighting and the const_generics_defaults feature gate? rust analyzer seems to be giving me error popups as if the feature doesn't exist even though i have <code>rustup default nighty</code> set <span aria-label="thinking" class="emoji emoji-1f914" role="img" title="thinking">:thinking:</span> <br>
<a href="/user_uploads/4715/4VOE28bjQrz65pzCeMoGCwp1/image.png">image.png</a></p>
<div class="message_inline_image"><a href="/user_uploads/4715/4VOE28bjQrz65pzCeMoGCwp1/image.png" title="image.png"><img src="/user_uploads/4715/4VOE28bjQrz65pzCeMoGCwp1/image.png"></a></div><p>(lcnr said you might have some idea about syntax highlighting stuff? <span class="user-mention" data-user-id="121053">@varkor</span> )</p>



<a name="236570682"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/260443-project-const-generics/topic/syntax%20highlighting%20for%20defaults/near/236570682" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> lqd <a href="https://rust-lang.github.io/zulip_archive/stream/260443-project-const-generics/topic/syntax.20highlighting.20for.20defaults.html#236570682">(Apr 28 2021 at 20:12)</a>:</h4>
<p>ah those are because r-a has its own parser and doesn’t use rustc in this situation</p>



<a name="236570773"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/260443-project-const-generics/topic/syntax%20highlighting%20for%20defaults/near/236570773" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Boxy [she/her] <a href="https://rust-lang.github.io/zulip_archive/stream/260443-project-const-generics/topic/syntax.20highlighting.20for.20defaults.html#236570773">(Apr 28 2021 at 20:13)</a>:</h4>
<p>so to fix this someone has to PR const param defaults parsing to R-A <span aria-label="sweat smile" class="emoji emoji-1f605" role="img" title="sweat smile">:sweat_smile:</span> ?</p>



<a name="236570969"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/260443-project-const-generics/topic/syntax%20highlighting%20for%20defaults/near/236570969" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> lqd <a href="https://rust-lang.github.io/zulip_archive/stream/260443-project-const-generics/topic/syntax.20highlighting.20for.20defaults.html#236570969">(Apr 28 2021 at 20:14)</a>:</h4>
<p>ah but you maybe meant the gate error specifically ? could be that they have a list of their own somewhere that needs to be regenerated <span aria-label="thinking" class="emoji emoji-1f914" role="img" title="thinking">:thinking:</span></p>



<a name="236571157"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/260443-project-const-generics/topic/syntax%20highlighting%20for%20defaults/near/236571157" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Boxy [she/her] <a href="https://rust-lang.github.io/zulip_archive/stream/260443-project-const-generics/topic/syntax.20highlighting.20for.20defaults.html#236571157">(Apr 28 2021 at 20:15)</a>:</h4>
<p>"gate error"? <span aria-label="thinking" class="emoji emoji-1f914" role="img" title="thinking">:thinking:</span></p>



<a name="236571171"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/260443-project-const-generics/topic/syntax%20highlighting%20for%20defaults/near/236571171" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Boxy [she/her] <a href="https://rust-lang.github.io/zulip_archive/stream/260443-project-const-generics/topic/syntax.20highlighting.20for.20defaults.html#236571171">(Apr 28 2021 at 20:16)</a>:</h4>
<p>i dont think i've hit that</p>



<a name="236571205"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/260443-project-const-generics/topic/syntax%20highlighting%20for%20defaults/near/236571205" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> lqd <a href="https://rust-lang.github.io/zulip_archive/stream/260443-project-const-generics/topic/syntax.20highlighting.20for.20defaults.html#236571205">(Apr 28 2021 at 20:16)</a>:</h4>
<p>to fix the errors on the 2nd line, yeah I believe so. for the 1st line probably not</p>



<a name="236571270"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/260443-project-const-generics/topic/syntax%20highlighting%20for%20defaults/near/236571270" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Boxy [she/her] <a href="https://rust-lang.github.io/zulip_archive/stream/260443-project-const-generics/topic/syntax.20highlighting.20for.20defaults.html#236571270">(Apr 28 2021 at 20:16)</a>:</h4>
<p>the only thing im getting on the first line is "const_generics_defaults is an incomplete feature and so.. blah blah"</p>



<a name="236571328"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/260443-project-const-generics/topic/syntax%20highlighting%20for%20defaults/near/236571328" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Boxy [she/her] <a href="https://rust-lang.github.io/zulip_archive/stream/260443-project-const-generics/topic/syntax.20highlighting.20for.20defaults.html#236571328">(Apr 28 2021 at 20:16)</a>:</h4>
<p>but yeah the second line is just "expected <code>&gt;</code> <code>,</code>"</p>



<a name="236571363"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/260443-project-const-generics/topic/syntax%20highlighting%20for%20defaults/near/236571363" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> lqd <a href="https://rust-lang.github.io/zulip_archive/stream/260443-project-const-generics/topic/syntax.20highlighting.20for.20defaults.html#236571363">(Apr 28 2021 at 20:17)</a>:</h4>
<p>ah right I'm on mobile the 1st line is not an error just a warning <span aria-label="sweat smile" class="emoji emoji-1f605" role="img" title="sweat smile">:sweat_smile:</span></p>



<a name="236571415"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/260443-project-const-generics/topic/syntax%20highlighting%20for%20defaults/near/236571415" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> lqd <a href="https://rust-lang.github.io/zulip_archive/stream/260443-project-const-generics/topic/syntax.20highlighting.20for.20defaults.html#236571415">(Apr 28 2021 at 20:17)</a>:</h4>
<p>so yes, we'd need r-a to parse defaults indeed :)</p>



<a name="236571432"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/260443-project-const-generics/topic/syntax%20highlighting%20for%20defaults/near/236571432" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Boxy [she/her] <a href="https://rust-lang.github.io/zulip_archive/stream/260443-project-const-generics/topic/syntax.20highlighting.20for.20defaults.html#236571432">(Apr 28 2021 at 20:17)</a>:</h4>
<p>ah lovely <span aria-label="sweat smile" class="emoji emoji-1f605" role="img" title="sweat smile">:sweat_smile:</span></p>



<a name="236573918"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/260443-project-const-generics/topic/syntax%20highlighting%20for%20defaults/near/236573918" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/260443-project-const-generics/topic/syntax.20highlighting.20for.20defaults.html#236573918">(Apr 28 2021 at 20:35)</a>:</h4>
<p>hmm, what's the exact grammar allowed at that position?</p>



<a name="236573997"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/260443-project-const-generics/topic/syntax%20highlighting%20for%20defaults/near/236573997" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/260443-project-const-generics/topic/syntax.20highlighting.20for.20defaults.html#236573997">(Apr 28 2021 at 20:36)</a>:</h4>
<p>it can't be any expression because then the trailing <code>&gt;</code> would be parsed as a comparison</p>



<a name="236574369"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/260443-project-const-generics/topic/syntax%20highlighting%20for%20defaults/near/236574369" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/260443-project-const-generics/topic/syntax.20highlighting.20for.20defaults.html#236574369">(Apr 28 2021 at 20:39)</a>:</h4>
<p>ah, any const arg</p>



<a name="236604107"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/260443-project-const-generics/topic/syntax%20highlighting%20for%20defaults/near/236604107" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/260443-project-const-generics/topic/syntax.20highlighting.20for.20defaults.html#236604107">(Apr 29 2021 at 01:10)</a>:</h4>
<p>implemented in <a href="https://github.com/rust-analyzer/rust-analyzer/pull/8685">https://github.com/rust-analyzer/rust-analyzer/pull/8685</a></p>



<a name="236605706"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/260443-project-const-generics/topic/syntax%20highlighting%20for%20defaults/near/236605706" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Boxy [she/her] <a href="https://rust-lang.github.io/zulip_archive/stream/260443-project-const-generics/topic/syntax.20highlighting.20for.20defaults.html#236605706">(Apr 29 2021 at 01:32)</a>:</h4>
<p>oh my god!!</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>